//
//  File.swift
//  SmartCheckIn
//
//  Created by Cidy Chou on 2017/10/12.
//  Copyright © 2017年 CidyChou. All rights reserved.
//

import Foundation
class BluetoothModel{
    
    var  blueToothName : String
    
    var  blueToothNo : String
    
    var  blueToothRSSI : NSNumber
    
    //phone p : String,bluetoothArray arr : [String]
    
    init(blueToothName btname:String,blueToothRSSI btrssi:NSNumber) {
        self.blueToothName = btname
        self.blueToothNo = btname
        //[1..<7]
        self.blueToothRSSI = btrssi
    }
    
}

// 截取string
//extension String {
//    subscript(r: Range<Int>) -> String {
//        get {
//            let startIndex = self.index(self.startIndex, offsetBy: r.lowerBound);
//            let endIndex = self.index(self.startIndex, offsetBy: r.upperBound)
//            return self.substring(with: Range(startIndex..<endIndex))
//        }
//        set {
//            let startIndex = self.index(self.startIndex, offsetBy: r.lowerBound);
//            let endIndex = self.index(self.startIndex, offsetBy: r.upperBound)
//            self.replaceSubrange(Range(startIndex..<endIndex), with: newValue)
//        }
//    }
//}

